﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Domain.审计字段;

namespace PersonnelSystemManagement.系统管理
{
    /// <summary>
    /// 用户角色关联表
    /// </summary>
    public class UserRoles : AuditableEntityBase
    {
        /// <summary>
        /// 主键 ID
        /// </summary>
        [Key]
        public int id { get; set; }

        /// <summary>
        /// 用户 ID，关联用户表
        /// </summary>
        public int? UserId { get; set; }

        /// <summary>
        /// 角色 ID，关联角色表
        /// </summary>
        public int? RoleId { get; set; }
    }
}
